function set_areas(A)
% set_areas  Set active stimulation areas on the thermode.
%    tcs2.set_areas(A) sets active areas. A are the 5 areas in the form "xxxxx",
%    ranging from 0 to 1, where 1 activates the area and 0 deactivates it (default value : 1).
%
%   Examples:
%
%       tcs2.set_areas(10001); % activates only the left and right-most
%       areas.


%% S-Command - Area Control
% 'Sxxxxx'	   : set active areas for stimulation. x=1 (active) or x=0
% (inactive)
tcs2.write_serial(['S' tcs2.format_xxxx_string(A,5)]);
end

